package org.com.yz.dubbo.web.service;

import org.com.yz.common.util.MyLog;
import org.com.yz.dal.dao.model.MchAccnt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 创建子商户账户service
 */
@Service
public class CreateMchSubService {

    private static final MyLog _log = MyLog.getLog(CreateMchSubService.class);

    @Autowired
    private RpcCommonService rpcCommonService;//注入的提供者的service

    public String createMchSub(MchAccnt req) {
        /*Map<String,String> resultMap = new HashMap<>();
        String s1 ="";

        MchSubInfo.MchSub sub = req.getBizContent();
        //生成子商户账户号
        sub.setMchAccntNo("987654321");
        //开设子商户账户*/
        //这里是问题所在
        // rpcCommonService.createMchSubService.insert(req);
        return null;

       /* resultMap.put("mch_accnt_no","987654321");
        resultMap.put("out_mch_accnt_no",req.getOut_trant_no());

        String s = JSONObject.toJSONString(resultMap);

        _log.info("业务查单完成,并再次发送业务支付通知.发送结果:{}", s);

        if(s == null) return null;
        return s;*/
    }


}
